//
//  UIFactory.swift
//  XJWeiBo
//
//  Created by 徐健 on 16/3/15.
//  Copyright © 2016年 徐健. All rights reserved.
//

import UIKit

class UIFactory{
    
    class func lableFactory(textColor:UIColor,text:String,fontSize:CGFloat)->UILabel{
        let l = UILabel.lableWith(textColor, text: text, fontSize: fontSize)
        
        return l
    }
    
    
    class func buttonWithImage(imageName: String, backImageName: String)->UIButton{
        
        let btn = UIButton.buttonWithImage(imageName, backImageName: backImageName)
        
        return btn
    }
    
    
    
    class func buttonWithTitle(title: String ,backImageName: String ,textColor: UIColor,fontSize: CGFloat)->UIButton{
        let regBtn = UIButton.buttonWithTitle(title, backImageName: backImageName, textColor: textColor, fontSize: fontSize)

        return regBtn
        
    }

    
    
}